Skip to main content
Version: 1.0.0

Time Parameters

The time group parameter is issued as a separate item because time groups are only valid when set as groups.

  • Charging/discharging time groups, a total of six groups
    • Selection of charging or discharging
    • Charging mode selection, effective only when charging is selected in charging/discharging
    • Start Time
    • End Time
  • Load management time groups, a total of three groups
    • Start time in the format hh:mm
    • End Time in the format hh:mm

✨ For Example

Please move on to more cases -> API沙箱

Time group settings

First group charging and discharging time group setting request

curl --location -g '{{EU}}/cmd/timearray/battery/set' \
--header 'Token: {{TOKEN}}' \
--data '{
"deviceSn": "A112200162230146",
"timeArray": {
"timeArrayId": 1,
"enable": true,
"chargeDischargeSelection": 1,
"chargingModeSelection": 1,
"powerLimitation": 30,
"startTime": "08:00",
"endTime": "10:59"
}
}'

Response

{
"errorCode": 0,
"info": null,
"body": "657be08d005c7c29b67a596c",
"successful": true
}

Time group check

The polling query result of the according response issued is valid within one minute. If the issuance is still not successful in over one minute, it is considered as a failed distribution.

Check request

curl --location -g '{{EU}}/cmd/timearray/battery/check?recordId=657be08d005c7c29b67a596c' \
--header 'Token: {{TOKEN}}'

Check response

{
"errorCode": 0,
"info": null,
"body": true,
"successful": true
}